-- GENERATED SPELL FOR [Shadowsword Berserker] --


function spell0_25798(pUnit, Event) --@Flurry,Self--
pUnit:FullCastSpellOnTarget(46160,pUnit)
pUnit:RegisterEvent('Sorts_25798', 6321, 1)
end

function Sorts_25798(pUnit, Event)
local choix_sorts_25798 = math.random(0, 0)
if choix_sorts_25798 == 0 then
pUnit:RegisterEvent('spell0_25798', 1, 1)
end
end

function mob25798_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25798', math.random(1500, 3000), 1)
end

function mob25798_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25798_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25798_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25798, 1, 'mob25798_Action')
RegisterUnitEvent(25798, 2, 'mob25798_Leave')
RegisterUnitEvent(25798, 3, 'mob25798_Kill')
RegisterUnitEvent(25798, 4, 'mob25798_Die')
